﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="DirectSummary.aspx.cs" Inherits="NewGlobalBizAssist.DirectSummary" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
  <script type="text/javascript">
      $(function () {
          $("#MainContent_txtdtfrom").datepicker({
              changeMonth: true,
              changeYear: true
          });
          $("#MainContent_txtdtto").datepicker({
              changeMonth: true,
              changeYear: true
          });
      });


      $("#dialog-form").dialog({
          autoOpen: false,
          height: 300,
          width: 350,
          modal: true,
          buttons: {
              OK: function () {
                  $(this).dialog("close");
              }
          },
      });

      function openDetail(id)
      {
           
            var href = 'DirectSummaryDet.aspx?ID=' + id;
            var features = 'resizable= yes; status= no; scroll= yes; help= no; center= yes; width=460;height=140;menubar=no;directories=no;location=no;modal=yes';
            window.showModalDialog(href, window, 'dialogWidth:500px; dialogHeight:600px;center:yes;resizable:no;status:no;scrollbars:yes;menubar:no;titlebar:no;toolbar:no;');
 
       
      }

	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="dialog-form" title="Summary Detail">
   
</div>

<div id="hdr"><p>Direct Referral Summary</p></div>
<div id="selection">
 Date From :<asp:TextBox ID="txtdtfrom" runat="server"></asp:TextBox>&nbsp;
 Date To :<asp:TextBox ID="txtdtto" runat="server"></asp:TextBox>
 <asp:Button ID="btn" runat="server" Text="View Summary" onclick="btn_Click" />
</div>
    <div id="main">
      <asp:GridView ID="gvMembers" runat="server" AutoGenerateColumns="False" BackColor="White"  
BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
            ShowFooter="True" 
           onrowdatabound="gv_RowDataBound" > 
<RowStyle BackColor="White" ForeColor="#003399" /> 
    <Columns>
        <asp:TemplateField HeaderText="Member ID" SortExpression="AgentId">
            <ItemTemplate>
                <asp:HyperLink ID="link1" runat="server" Text='<%# Bind("AgentId") %>'/>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="Agent" HeaderText="Member" ReadOnly="True"  
            SortExpression="Agent" /> 
        <asp:BoundField DataField="Amount" HeaderText="Rebate" ReadOnly="True"/>
    </Columns> 
    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" /> 
    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" /> 
    <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" /> 
    <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" /> 
    </asp:GridView>
    </div>

</asp:Content>
